Tutorials
Run the RAG playground end-to-end
This tutorial walks a first-time user from a clean checkout to chatting with their own document.
Prerequisites
- macOS or Linux shell (the commands below are zsh/bash).
uvinstalled (brew install uvon macOS).- A free account on the ICICLE AI Tapis portal — TACC login, CILogon (university SSO), or self-signup all work.
Steps
- Clone and enter the repo.
git clone https://github.com/thevyasamit/icicle-chatbook.git
cd icicle-chatbook - Sync the environment.
uvreadspyproject.toml+uv.lockand creates.venv/withmarimoandrequestspinned.uv sync - Launch the notebook in app mode (code hidden, chat-style UI):
Or in editor mode (code visible, hot-reload) while developing:
uv run marimo run notebooks/rag_chat_marimo.pyuv run marimo edit notebooks/rag_chat_marimo.py - Grab a Tapis access token from icicleai.tapis.io (click your username in the bottom-left → Copy Access Token), paste it into the token box, and click 🔐 Validate token.
- Ingest a document — paste any text into the textarea, then click 🚀 Ingest into vector store.
- Ask questions in the chat panel at the bottom. Each message embeds the question, retrieves the top-K nearest chunks, stitches them into a grounded prompt, and sends it to the chat model.
End result
A working in-browser RAG demo backed by your own document. The notebook surfaces the retrieved chunks under each answer so you can see exactly what the model was given.